package org.bilinc.gz001.dao.interfaces;

import org.bilinc.gz001.entity.interfaces.AbstractEntity;

import java.util.List;

public interface AbstractDao<T extends AbstractEntity> {

    void saveOrUpdate(T entity);

    void delete(Long id);

    void delete(T entity);

    T get(Long id);

    void change(T entity);

    List<T> getAll();
}
